package com.yc.baihe.beans;

import java.io.Serializable;

public class Chat implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private int aid;//当前用户编号
	private int bid;//收消息用户的编号
	private String content;//消息内容
	private String time;//发消息时间
	private String status;	//消息的状态
	private String temp1;//备用
	private String temp2;//备用
	public int getAid() {
		return aid;
	}
	public void setAid(int aid) {
		this.aid = aid;
	}
	public int getBid() {
		return bid;
	}
	public void setBid(int bid) {
		this.bid = bid;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getTemp1() {
		return temp1;
	}
	public void setTemp1(String temp1) {
		this.temp1 = temp1;
	}
	public String getTemp2() {
		return temp2;
	}
	public void setTemp2(String temp2) {
		this.temp2 = temp2;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + aid;
		result = prime * result + bid;
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result + ((status == null) ? 0 : status.hashCode());
		result = prime * result + ((temp1 == null) ? 0 : temp1.hashCode());
		result = prime * result + ((temp2 == null) ? 0 : temp2.hashCode());
		result = prime * result + ((time == null) ? 0 : time.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Chat other = (Chat) obj;
		if (aid != other.aid)
			return false;
		if (bid != other.bid)
			return false;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (status == null) {
			if (other.status != null)
				return false;
		} else if (!status.equals(other.status))
			return false;
		if (temp1 == null) {
			if (other.temp1 != null)
				return false;
		} else if (!temp1.equals(other.temp1))
			return false;
		if (temp2 == null) {
			if (other.temp2 != null)
				return false;
		} else if (!temp2.equals(other.temp2))
			return false;
		if (time == null) {
			if (other.time != null)
				return false;
		} else if (!time.equals(other.time))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Chat [aid=" + aid + ", bid=" + bid + ", content=" + content
				+ ", time=" + time + ", status=" + status + ", temp1=" + temp1
				+ ", temp2=" + temp2 + "]";
	}
	public Chat(int aid, int bid, String content, String time, String status,
			String temp1, String temp2) {
		super();
		this.aid = aid;
		this.bid = bid;
		this.content = content;
		this.time = time;
		this.status = status;
		this.temp1 = temp1;
		this.temp2 = temp2;
	}
	public Chat() {
		super();
	}
	
}
